package com.team.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
    * 图库
    */
@Data
@TableName(value = "t_image_map")
public class ImageMap {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 产品外键
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 图片名称
     */
    @TableField(value = "img_name")
    private String imgName;

    /**
     * 图片类型
     */
    @TableField(value = "img_type")
    private String imgType;

    /**
     * 图片目的地
     */
    @TableField(value = "img_address")
    private String imgAddress;

    /**
     * 图片URl地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 作者 上传者
     */
    @TableField(value = "img_creator")
    private String imgCreator;

    /**
     * 图片上传时间
     */
    @TableField(value = "img_time")
    private Date imgTime;

    /**
     * 排序号
     */
    @TableField(value = "order_by")
    private Integer orderBy;

    /**
     * 图片状态 0下架 1上架 状态
     */
    @TableField(value = "img_state")
    private Integer imgState;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_IMG_NAME = "img_name";

    public static final String COL_IMG_TYPE = "img_type";

    public static final String COL_IMG_ADDRESS = "img_address";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_IMG_CREATOR = "img_creator";

    public static final String COL_IMG_TIME = "img_time";

    public static final String COL_ORDER_BY = "order_by";

    public static final String COL_IMG_STATE = "img_state";
}